//
//  YTSetCell.m
//  YUNT
//
//  Created by 梁炜东 on 2017/11/20.
//  Copyright © 2017年 梁炜东. All rights reserved.
//

#import "YTSetCell.h"

@implementation YTSetCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        self.backgroundColor = [UIColor clearColor];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.textLabel.textColor = [UIColor whiteColor];
        UIView *line = [[UIView alloc] init];
        line.backgroundColor = YTColorAlpha(180, 180, 180, 0.3);
        [self addSubview:line];
        [line mas_makeConstraints:^(MASConstraintMaker *make) {
            make.leading.trailing.bottom.equalTo(self);
            make.height.mas_equalTo(1);
        }];
    }
    return self;
}
-(void)configObject:(NSArray *)arr
{
    self.imageView.image = IMAGE(arr[0]);
    self.textLabel.text = arr[1];
}

@end
